package com.cherrypt.api.core.service.impl;

import com.cherrypt.api.core.service.StorageService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.nio.file.Paths;

/**
 * @author intent
 * @date 2019/8/1 15:27
 * @about <link href='http://zzyitj.xyz/'/>
 */
@Service
public class TorrentStorageService extends FileSystemStorageService implements StorageService {

    public TorrentStorageService(@Value("${api.torrentsFolder}") String torrentsFolder) {
        super(Paths.get(torrentsFolder));
    }
}
